<?php

/* 
 * Edit by shengxin
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/EmptyPHP.php to edit this template
 */

function xx_array_to_map($arr,$key){
    $map = [];
    foreach ($arr as $v) {  
        $map[$v[$key]] = $v;  
    }
    return $map;
}
